package com.example.springbooteasycode.utils;

public class UrlSubstring {
    public static void main(String[] args) {
        String input = "tourl=https://property67-test.999time.cn/cms/viewArticle?informationCode=89184277228744717";
        // 查找 "tourl=" 的结束位置
        int startIndex = input.indexOf("tourl=");
        if (startIndex != -1) {
            startIndex += "tourl=".length();
            // 截取 "tourl=" 后面的全部内容
            String url = input.substring(startIndex);
            System.out.println(url);
        } else {
            System.out.println("未找到 'tourl='");
        }
    }
}
